import request from '@/utils/request'

// 查询优质导航数据列表
export function listDaohang(query) {
  return request({
    url: '/homepage/daohang/list',
    method: 'get',
    params: query
  })
}

// 查询优质导航数据详细
export function getDaohang(dhId) {
  return request({
    url: '/homepage/daohang/' + dhId,
    method: 'get'
  })
}

// 新增优质导航数据
export function addDaohang(data) {
  return request({
    url: '/homepage/daohang',
    method: 'post',
    data: data
  })
}

// 修改优质导航数据
export function updateDaohang(data) {
  return request({
    url: '/homepage/daohang',
    method: 'put',
    data: data
  })
}

// 删除优质导航数据
export function delDaohang(dhId) {
  return request({
    url: '/homepage/daohang/' + dhId,
    method: 'delete'
  })
}
